package com.example.building_material_mannager.mapper;

import com.example.building_material_mannager.entity.SelectType;
import com.example.building_material_mannager.entity.Sell;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SellMapper {
    //增加
    boolean add(Sell sell);
    //删除
    boolean delete(String sordernumber);
    //修改
    boolean update(Sell sell);
    //查询
   List<Sell> select(Sell sell);
    Sell selectByOrder(String sordernumber);
   //通过订单编号查询
    Sell selectByOrderByCollectionls(@Param("cosordernumber") String cosordernumber,@Param("collectionSelectType") SelectType collectionSelectType);
}
